package ${package.Service};

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ${package.Entity}.${entity};
import ${cfg.EntityVo}.${table.entityName}VO;
import com.tele.common.bean.Query;
import com.tele.common.service.IBasicBeanService;
import com.tele.common.vo.Result;

import java.util.List;

/**
 * @author ${author}
 * @version 1.0
 * @date ${.now}
 * @Description ${table.comment}服务层
 */
public interface ${table.serviceName} extends IBasicBeanService<${table.entityName}> {

    /**
     * 分页获取${table.comment}列表
     *
     * @param query 查询参数
     * @return {@link Result}
     */
    Result<Page<${table.entityName}VO>> findPage(Query<${table.entityName}VO> query);

    /**
     * 新增${table.comment}信息
     *
     * @param ${table.entityPath} ${table.comment}
     * @return {@link Result<String>}
     */
    Result<String> add${table.entityName}(${table.entityName}VO ${table.entityPath});

    /**
     * 修改${table.comment}信息
     *
     * @param ${table.entityPath} ${table.comment}
     * @return {@link Result<String>}
     */
    Result<String> update${table.entityName}(${table.entityName}VO ${table.entityPath});

    /**
     * 删除${table.comment}信息
     *
     * @param ids ${table.comment}Id
     * @return {@link Result<String>}
     */
    Result<String> deleteByIds(List<String> ids);

}